package com.cb.spzx.manager.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cb.spzx.model.dto.system.SysRoleDto;
import com.cb.spzx.model.entity.system.SysRole;

import java.util.Map;

/**
* @author lenovo
* @description 针对表【sys_role(角色)】的数据库操作Service
* @createDate 2024-04-08 16:45:40
*/
public interface SysRoleService extends IService<SysRole> {

    IPage<SysRole> findByPage(SysRoleDto sysRoleDto, Page<SysRole> sysRolePage);

    int saveSysRole(SysRole sysRole);

    int updateSysRole(SysRole sysRole);

    int deleteById(Long roleId);

    Map<String, Object> findAllRoles(Long userId);
}
